package com.example.score.mapper;

import com.example.score.entity.Course;
import com.example.score.entity.Scale;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseMapper {
    int create(Course course);
    List<Course> getListByUserId(Integer userId);
    List<Course> getAllCourse();

    Scale selectScale(Integer classId);

    int manage(Course course);

    List<Course> showCourse(Integer courseId);

    int RemoveCourseClass(@Param("CourseId") Integer CourseId,@Param("ClassId") Integer ClassId);

    int deleteCourse1(Integer CourseId);
    int deleteCourse2(Integer CourseId);
}
